package com.cekanet.mybudget.dbutils;

import java.math.BigDecimal;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable
public class StatementItem {
	@PrimaryKey
	@Persistent (valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String userId;
	
	@Persistent
	private Date date;
	
	@Persistent
	private BigDecimal price;
	
	@Persistent
	private String name;
	
	@Persistent 
	private String description;

	
	public StatementItem(Date date, BigDecimal price, String name, String description){
		this.date=date;
		this.price=price;
		this.name=name;
		this.description=description;
	}
	public Long getId(){
		return this.id;
	}
	public String getOwnerId(){
		return this.userId;
	}
	
	public Date getDate(){
		return this.date;
	}
	public BigDecimal getPrice(){
		return this.price;
	}
	public String getName(){
		return this.name;
	}
	public String getDescription(){
		return this.description;
	}

	protected void setOwnerId(String userId){
		this.userId=userId;
	}
	public void setDate(Date date){
		this.date=date;
	}
	public void setPrice(BigDecimal price){
		this.price=price;
	}
	public void setName(String name){
		this.name=name;
	}
	public void setDescription(String description){
		this.description=description;
	}
	
}
